package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.bean.RoomBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IRoomMapper extends BaseMapper<RoomBean> {
    public IPage<RoomBean> findByItem(Page page, @Param("roomName") String roomName, @Param("roomState") String roomState, @Param("into") String into, @Param("roomSex") String roomSex);
    public List<RoomBean> findBySex(String sex);
}
